#!/bin/bash
git pull
mvn clean package

sshpass -p 'Lwliang0105' scp avalon-erp/target/avalon-server.jar root@120.79.92.127:/root/avalon/temp/
sshpass -p 'Lwliang0105' scp avalon-file/target/avalon-file.jar root@120.79.92.127:/root/avalon/temp/
sshpass -p 'Lwliang0105' scp avalon-im/target/avalon-im.jar root@120.79.92.127:/root/avalon/temp/
sshpass -p 'Lwliang0105' scp avalon-shop/target/avalon-shop.jar root@120.79.92.127:/root/avalon/temp/

sshpass -p 'Lwliang0105' ssh root@120.79.92.127 "sh /root/avalon/deploy.sh"
